# 列表 list
# print(type(L))


# L = [1, 2, 3, 4, 5]
# print(L)

# M = [1, 1, 1, 1, 1]
# print(M)

# 列表的常用操作

L = [1, 2, 3, 4, 5, 6, 7, 8]
L.append(5)
print(L)            # [1, 2, 3, 4, 5, 6, 7, 8, 5]
del L[1]
print(L)            # [1, 3, 4, 5, 6, 7, 8, 5]
print(len(L))       # 8
print(L[2])         # 4
print(L[-3])        # 7
print(L.index(8))   # 6
L.insert(3, 55)
print(L)            # [1, 3, 4, 55, 5, 6, 7, 8, 5]

pop = L.pop(5)
print(pop)          # 6
print(L)            # [1, 3, 4, 55, 5, 7, 8, 5]
